import React from 'react';
import { Table } from 'antd';

export default class H2HAccountList extends React.Component {
    constructor(props) {
        super(props);
    }

    columns = [
        { title: '银行中文名称', dataIndex: 'bankName', key: 'bankName' },
        { title: '银行英文名称', dataIndex: 'bankNameEn', key: 'bankNameEn' },
        { title: '银行英文地址', dataIndex: 'addressEn', key: 'addressEn' },
        { title: 'SWIFT代码', dataIndex: 'swiftCode', key: 'swiftCode' },
        { title: '清分子账号', dataIndex: 'bankSubAccount', key: 'bankSubAccount' },
        { title: '币种', dataIndex: 'currency', key: 'currency' },
        { title: '交易附言', dataIndex: 'addMsg', key: 'addMsg' }
    ];

    render() {
        return (
            <div>
                <Table rowKey="id" dataSource={this.props.subAccountList ? this.props.subAccountList : []} columns={this.columns} bordered={true} size={'middle'} pagination={false} />
            </div>
        )
    }
}
